<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <#include "/header.html" />
        </head>
<body>
<div id="check" v-cloak>
    <div class="panel panel-default">
        <div class="panel-heading">流程审核</div>
        <form class="form-horizontal">
            <div class="form-group" v-for="(title,index) in processInfo.formProperties">
                <div class="col-sm-4 control-label">{{ index+1 }}、{{ title.name }}</div>
                <div class="col-sm-8" v-if="title.type.name === 'string'">
                    <input type="text" :value="title.value" class="form-control" :id="title.name"/>
                </div>
                <div class="col-sm-8" v-if="title.type.name === 'date'">
                    <input class="Wdate form-control" :value="title.value" style="height: 34px; border: 1px solid #ccc;"
                           onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})" :id="title.name"/>
                </div>
                <div class="col-sm-8" v-if="title.type.name === 'long'">
                    <input type="text" :value="title.value" class="form-control" :id="title.name"/>
                </div>
                <div class="col-sm-8" v-if="title.type.name === 'boolean'">
                    <select class="form-control" :id="title.name" v-if="title.value == null">
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                    <select class="form-control" :id="title.name" v-else>
                        <option value="1" v-if="title.value === '1'">是</option>
                        <option value="0" v-else>否</option>
                    </select>
                </div>
                <div class="col-sm-8" v-if="title.type.name === 'enum'">
                    <select class="form-control" :id="title.name"
                            v-if="title.value == null">
                        <option :value="enumdata.name" v-for="(enumdata,index) in title.list"> {{ enumdata.value }}
                        </option>
                    </select>
                    <select class="form-control" :id="title.name" v-else>
                        <option :value="enumdata.name" v-for="(enumdata,index) in title.list"
                                v-if="enumdata.name==title.value"> {{ enumdata.value }}
                        </option>
                    </select>
                </div>
            </div>
            <div class="form-group" style="margin-top: 15px;">
                <div class="col-sm-4 control-label"></div>
                <div class="col-sm-8">
                    <input type="button" class="btn btn-primary" @click="startprocess" value="确定"/>
                    &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="goBack" value="返回"/>
                </div>
            </div>
        </form>
    </div>
</div>
<script src="${request.contextPath}/statics/My97DatePicker/WdatePicker.js"></script>
<script src="${request.contextPath}/statics/js/modules/activity/backloginfo.js?_${.now?long}"></script>
</body>
</html>